package com.sss.hloster0403;

public class Teacher {
//属性
	private final String teaName;
	private int teaAge;

	// 行为方法
	public int getTeaAge() {
		return teaAge;
	}

	public void setTeaAge(int teaAge) {
		this.teaAge = teaAge;
	}

	public String getTeaName() {
		return teaName;
	}
//final类型的成员变量，不能提供set方法
	// public void setTeaName(){
    //this.tesName=teaName;
	// }

	public Teacher() {

		super();
		this.teaName = "张三";
	}

	public Teacher(String teaName, int teaAge) {
		super();
		this.teaName = teaName;// 保证对fianl属性进行初始化
		this.teaAge = teaAge;
	}

}
